<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<base href="<?php echo $this->serverUrl().$this->baseUrl().'/'; ?>" />
<?php echo $this->headTitle(); ?>
<?php echo $this->headMeta(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headScript(); ?>

<script type="text/javascript">
//-----------------------------------------
// Confirm Delete
//-----------------------------------------
$(document).ready(function(){

    // Confirm Delete
    $('#delete').click(function(){

        checked = 0;

		$("input[name*=\'selected\']").each(function(i,e){
			if($(this).attr("checked")){
				checked++;
				}
			});

		if (checked == 0) {
			alert("Please select the record(s) to delete.");
			} else {
				 if (confirm ('Confirm?')) {
					 $('#form').submit();
		            }
			}
    });

});
</script>
</head>
<body>
<div id="container">

<div id="header">
  <div class="div1"><img src="images/logo.png" title="Administration"/></div>
    <?php if ($this->AuthInfo()->isLoggedIn()): ?>
    <div class="div2"><img src="images/lock.png" alt="" style="position: relative; top: 3px;" />&nbsp;<?php echo $this->AuthInfo('fullname'); ?></div>
    <?php endif; ?>
</div>
<?php if($this->AuthInfo()->isLoggedIn()): ?>
    <?php echo $this->render('_cmsTopNav.phtml'); ?>
<?php endif; ?>

<div id="content">

    <br/>

    <div style="width:10px"></div>
    <?php echo $this->layout()->content ?>
    </div>

</div>

<div id="footer"><a href="http://www.paceplux.com">PacePlux</a>-BIS Sales Management System &copy; <?php echo date('Y'); ?>.<br />Version <?php echo Zend_Registry::get('APPLICATION_VERSION'); ?></div>

</body>
</html>